package acm;

import java.util.Scanner;

public class a7 {
    public static void main(String[] args){
        Scanner in = new Scanner(System.in);
        int n, m;
        n=in.nextInt();
        m=in.nextInt();
        word(n,m);

    }
    public static void word(int n,int m){
        String[] a={"A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"};
        int y=0;
        for (int i=0;i<n;i++){
            int z=0;
            for (int j=i;j>=1;j--){
                System.out.print(a[j]);
                z++;
                if (z>m-1){
                    break;
                }
        }
            y=i;
            for (int x=0;x<(m-y);x++){
                System.out.print(a[x]);
            }
            System.out.println();
        }
    }
}
